<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
            "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>



<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="hevea 1.08">
<LINK rel="stylesheet" type="text/css" href="tutorial.css">
<TITLE>
Exercises
</TITLE>
</HEAD>
<BODY >
<A HREF="tutorial035.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="tutorial023.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<HR>

<H2 CLASS="section"><A NAME="htoc76">4.13</A>&nbsp;&nbsp;Exercises</H2>
<OL CLASS="enumerate" type=1><LI CLASS="li-enumerate"><BR>
<BR>
Using a <TT>do</TT> loop, write a predicate which, when given a 1-d array,
returns a list containing the elements of the array in reverse order.<BR>
<BR>
<LI CLASS="li-enumerate"><BR>
<BR>
Write a predicate <TT>transpose(Matrix, Transpose)</TT> to transpose a 2-d
array.<BR>
<BR>
Can you make it work backwards? (i.e. if <TT>Transpose</TT> is specified,
can you make it return a suitable <TT>Matrix</TT>?)</OL>
<HR>
<A HREF="tutorial035.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="tutorial023.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
</BODY>
</HTML>
